import axios from "axios";
export default {
    //获取所有会员
    getVip(params) {
        return axios({
            url: "/member/getAllMembers",
            method: "GET",
            params,
        });
    },
    // 删除会员
    delVip(data) {
        return axios({
            url: "/member/delMember",
            method: "POST",
            data,
        });
    },
    //后端充值会员
    vip(data) {
        return axios({
            url: "/member/updateMemberToVip",
            method: "POST",
            data,
        });
    },
    // 取消会员
    cancelVip(data) {
        return axios({
            url: "/member/cancleMember",
            method: "POST",
            data,
        });
    },
};